package com.le.book.dao;

import java.sql.SQLException;
import java.util.Map;

import com.le.book.util.DBHelper;

public class ReaderDao {

	public static void main(String[] args) {
		// new ReaderDao().selectForLogin("test","123");
	}
	
	public Map<String, Object> selectForLogin(String name, String pwd) throws SQLException{
		String sql = "select * from reader where name = ? and pwd = ?";
		return DBHelper.selectOneMap(sql, name, pwd);
	}

}
